<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>

<head>
	<probiz:pageHeading pageHeadingKey="consultList.heading" />
</head>
<content tag="buttons">
	<probiz:iconBtn btnType="multiMarkShowFlip" onclick="multiToggleShowStatus();" />
	<probiz:iconBtn btnType="multiMarkReadFlip" onclick="multiToggleReadStatus();" />
	<probiz:iconBtn btnType="delete" id="multiDelete" onclick="multiDelete();" />
</content>

<div id="entityList">
	<%@include file="include/consultSearchCriteria.jspf"%>
	
	<div id="entityResults" name="entityResults">
		<%--ajaxLoad file="/customer/include/consultListBody.jspf" --%>
		<%@include file="include/consultSearchCriteriaStorage.jspf"%>
	</div>
</div>


<script type="text/javascript"	src="${ctxPath}/scripts/probiz/customer/consultList.js?rs=${appConfig.rs}"></script>
<div style="display:none;">
	<customer:consultReply selectorId="replyDialog" callbackFunc="refreshReplyCount"></customer:consultReply>
</div>



<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
		consultList_selectConsult:"<fmt:message key="consultList.selectConsult"/>",
	    consult_isRead_read:"<fmt:message key="consult.isRead.read"/>",
	    consultList_message_multiToggleReadStatus_success:"<fmt:message key="consultList.message.multiToggleReadStatus.success"/>",
	    consultList_message_multiToggleShowStatus_success:"<fmt:message key="consultList.message.multiToggleShowStatus.success"/>",
	    consultList_message_multiToggleTopStatus_success:"<fmt:message key="consultList.message.multiToggleTopStatus.success"/>",
	    consultList_message_multiDelete_success:"<fmt:message key="consultList.message.multiDelete.success"/>",
	    consultList_message_messageCannotBeEmpty:"<fmt:message key="consultList.message.messageCannotBeEmpty"/>",
	    consultList_message_replyConsult_success:"<fmt:message key="consultList.message.replyConsult.success"/>",
	    consult_isHandle_handle:"<fmt:message key="consult.isHandle.handle"/>",
	    consult_isHandle_unHandle:"<fmt:message key="consult.isHandle.unHandle"/>"
	};
	$j.extend(__FMT, __FMTExtend); 
});	

$j(document).ready(function () {
	<c:choose>
		<c:when test="${not empty param.handleStatus}">
			searchEntities(true,{handleStatus:${param.handleStatus}});
		</c:when>
		<c:otherwise>
			searchEntities(true,'');
		</c:otherwise>
	</c:choose>
});

</script>